﻿// Project: WebPage, File: ImageWebPage.cs
// Namespace: WebPage, Class: ImageWebPage
// Path: H:\Secure Project\WebPage\WebPage, Author: Radu-Mihail
// Code lines: 42, Size of file: 1.04 KB
// Creation date: 12/6/2008 8:06 PM
// Last modified: 12/21/2008 4:09 PM

#region Using directives
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Text;
using WebPage.Client;
#endregion

namespace WebPage
{
    public class ImageWebPage : AbstractWebPage
    {
        #region Constructor
        /// <summary>
        /// Create image web page
        /// </summary>
        /// <param name="webPageLink">Normalized web page link</param>
        /// <returns>Image web page</returns>
        public ImageWebPage(ref MyWebClient webClient, bool revisit):base(ref webClient, revisit)
        {            
        } // ImageWebPage(webPageLink)
        
        #endregion

        #region Public Methods

        /// <summary>
        /// Get image
        /// </summary>
        /// <returns>Bitmap</returns>
        override public Object GetPageContent() {
            MemoryStream memoryStream = new MemoryStream(_fileContent);
            Bitmap outputImage = new Bitmap(memoryStream);
            memoryStream.Close();
            return outputImage;
        } // GetImage()

        #endregion


        public override List<string> LinkList
        {
            get { return null; }
        }
    } // class ImageWebPage
} // namespace WebPage
